<template>
	<el-card class="form-container">
		<el-form :model="prefectureDetail" label-width="100px">
			<el-form-item label="" prop="id">
				<el-input v-model="prefectureDetail.id" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="专区编号" prop="prefectureCode">
				<el-input v-model="prefectureDetail.prefectureCode" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="专区主体名称" prop="prefectureName">
				<el-input v-model="prefectureDetail.prefectureName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="专区副标题" prop="prefectureSketch">
				<el-input v-model="prefectureDetail.prefectureSketch" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="专区封面图" prop="prefectureLogo">
				<el-input v-model="prefectureDetail.prefectureLogo" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="专区背景图" prop="prefectureBackdrop">
				<el-input v-model="prefectureDetail.prefectureBackdrop" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="单品数量" prop="goodsNumber">
				<el-input v-model="prefectureDetail.goodsNumber" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="专区浏览量" prop="browsingVolume">
				<el-input v-model="prefectureDetail.browsingVolume" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="排序" prop="prefectureSort">
				<el-input v-model="prefectureDetail.prefectureSort" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="是否显示  1.显示 2.不显示" prop="isShow">
				<el-input v-model="prefectureDetail.isShow" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="修改时间" prop="updateTime">
				<el-input v-model="prefectureDetail.updateTime" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="创建时间" prop="createTime">
				<el-input v-model="prefectureDetail.createTime" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item>
				<el-button @click="close">关闭</el-button>
			</el-form-item>
		</el-form>
	</el-card>
</template>

<script>
	import { findPrefectureDetail } from '@/api/activity/prefecture'
	export default {
		name: 'view-prefecture',
		data() {
			return {
				prefectureDetail: {}
			}
		},
		created() {
			this.view(this.$route.query.id)
		},
		methods: {
			view(val) {
				findPrefectureDetail(val).then(res => {
					console.log('查询返回结果', res)
					this.prefectureDetail = res.data.responseData
				})
			},
			close() {
				this.$router.go(-1)
			}
		}
	}
</script>

<style>
</style>
